package com.bobanngame.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.bobanngame.entity.User;
import com.bobanngame.mapper.UserMapper;
import com.bobanngame.service.IUserService;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * <p>
 * 用户表  服务实现类
 * </p>
 *
 * @author xuejia
 * @since 2017-02-08
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {



	public boolean addUser(){
        // 初始化 影响行数
        int result = 0;
        // 初始化 User 对象
        User user = new User();
        user.setCreateTime(new Date());
        // 插入 User (插入成功会自动回写主键到实体类)
        user.setName("Tom");

        //this.sele

        return this.insert(user);

        //result = this.baseMapper.insert(user);
    }
}
